package com.intct.hbase.bean;

import java.util.Objects;

/**
 * @author gufg
 * @since 2025-06-25 15:56
 */
public class Student {
    public String classId;
    public String studentId;
    public long score;

    public Student() {
    }

    public Student(String classId, String studentId, long score) {
        this.classId = classId;
        this.studentId = studentId;
        this.score = score;
    }

    public String getClassId() {
        return classId;
    }

    public void setClassId(String classId) {
        this.classId = classId;
    }

    public String getStudentId() {
        return studentId;
    }

    public void setStudentId(String studentId) {
        this.studentId = studentId;
    }

    public long getScore() {
        return score;
    }

    public void setScore(long score) {
        this.score = score;
    }

    @Override
    public String toString() {
        return "Studenet{" +
                "classId='" + classId + '\'' +
                ", studentId='" + studentId + '\'' +
                ", score=" + score +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Student studenet = (Student) o;
        return score == studenet.score && Objects.equals(classId, studenet.classId) && Objects.equals(studentId, studenet.studentId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(classId, studentId, score);
    }
}
